package com.cqggrw.dao;

import java.util.List;

import com.cqggrw.domain.Img;

public interface NewsDaoI<T> {

	public boolean add(T t);
	public boolean del(int id);
	public boolean modify(T t);
	public T get(T t);
	public List<T> get();
	public List<T> get(T t, int i);
	public List<T> getByTypeId(int id);
	public int getTotal(T t);
	
	public List<T> searchByName(String name, Integer page);
	public int countForSearch(String name);
	
	public boolean addImg(Img img);
	
	public boolean saveMessage(T t);
	
	public List<Category> getCate();
	
	public List<Img> getNewsImg(String falg);
	
	public boolean updateNewsImg(T t);
	
	public boolean modifyImg(Img img);
	
	public boolean delNewsImg(Integer id);
	
	List<T> getListHasImgByType(Integer id);
}
